<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head th:replace="fragments/header :: header">
</head>
<body>
<div class="container">
     <div class="mt-3">
       	<h2>Welcome to total page!</h2>
     </div>
     <div sec:authorize="isAuthenticated()" th:if="${principal}" th:object="${principal}">
     	<p>Current User of Online</p>
     	<p>
     		users:<span sec:authentication="name"></span>
     	</p>
     	<p>
     		user authentication:<span th:text="*{userAuthentication.authorities}"></span>
     	</p>
     	<p>
     		user headPortal: <img alt="" class="avatar width-full rounded-2"
     			 th:src="*{userAuthentication.details.avatar_url}" width="230"/>
     	</p>
     	<div sec:authorize="isAnonymous()">
     		<p>No user login</p>
     	</div>
     </div>
</div> 
<div th:replace="fragments/footer :: footer">...</div>
</body>
</html>